package com.darren.euc.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 汉王记录
 * Created by IIS72013 2018/04/01.
 */
@Entity
@Table(name = "euc_hanwang_records")
public class HanWangRecord implements Serializable {

	private static final long serialVersionUID = -7447978834343549156L;
	
	@Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
	
	/**
     * 开门时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Column(name = "open_door_time",columnDefinition = "datetime comment '开门时间'")
    private Date openDoorTime;
	
    /**
     * 所属空间ID
     */
    @Column(name = "space_id",columnDefinition = "int default 0 comment '所属空间ID'")
    private Integer spaceId;    
    
    /**
     * 所属空间名称
     */
    @Column(name = "space_name",columnDefinition = "varchar(255) default '' comment '所属空间名称'")
    private String spaceName;

    /**
     * 设备名称
     */
    @Column(name = "device_name",columnDefinition = "varchar(255) default '' comment '设备名称'")
    private String deviceName;
    
    /**
     * 硬件ID
     */
    @Column(name = "device_number",columnDefinition = "varchar(255) default '' comment '硬件编号/硬件ID'")
    private String deviceNumber;
    
    
    /**
     * 会员ID
     */
    @Column(name = "member_id",columnDefinition = "int default 0 comment '会员ID'")
    private Integer memberId;
    
    /**
     * 会员名字
     */
    @Column(name = "member_Name",columnDefinition = "varchar(255) default '' comment '会员名字'")
    private String memberName;
    
    /**
     * 客户ID
     */
    @Column(name = "client_id",columnDefinition = "int default 0 comment '客户ID'")
    private Integer clientId;
    
    /**
     * 客户名字
     */
    @Column(name = "client_Name",columnDefinition = "varchar(255) default '' comment '客户名字'")
    private String clientName;
    
    /**
     * 开门方式
     */
    @Column(name = "open_type",columnDefinition = "int default -1 comment '开门方式'")
    private Integer openType = -1;  
    
    /**
     * 是否成功
     */
    @Column(name = "success",columnDefinition = "tinyint default 1 comment '是否成功：true是成功；false 是失败'")
	private boolean success = true;
    
    
    
    /**
     * 会员卡号(手环编号)
     */
    @Column(name = "card_number",columnDefinition = "int  comment '会员卡号(手环编号)'")
    private Integer cardNumber;



	public Integer getId() {
		return id;
	}



	public void setId(Integer id) {
		this.id = id;
	}



	public Date getOpenDoorTime() {
		return openDoorTime;
	}



	public void setOpenDoorTime(Date openDoorTime) {
		this.openDoorTime = openDoorTime;
	}



	public Integer getSpaceId() {
		return spaceId;
	}



	public void setSpaceId(Integer spaceId) {
		this.spaceId = spaceId;
	}



	public String getSpaceName() {
		return spaceName;
	}



	public void setSpaceName(String spaceName) {
		this.spaceName = spaceName;
	}



	public String getDeviceName() {
		return deviceName;
	}



	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}



	public String getDeviceNumber() {
		return deviceNumber;
	}



	public void setDeviceNumber(String deviceNumber) {
		this.deviceNumber = deviceNumber;
	}



	public Integer getMemberId() {
		return memberId;
	}



	public void setMemberId(Integer memberId) {
		this.memberId = memberId;
	}



	public String getMemberName() {
		return memberName;
	}



	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}



	public Integer getClientId() {
		return clientId;
	}



	public void setClientId(Integer clientId) {
		this.clientId = clientId;
	}



	public String getClientName() {
		return clientName;
	}



	public void setClientName(String clientName) {
		this.clientName = clientName;
	}



	public Integer getOpenType() {
		return openType;
	}



	public void setOpenType(Integer openType) {
		this.openType = openType;
	}



	public boolean isSuccess() {
		return success;
	}



	public void setSuccess(boolean success) {
		this.success = success;
	}



	public Integer getCardNumber() {
		return cardNumber;
	}



	public void setCardNumber(Integer cardNumber) {
		this.cardNumber = cardNumber;
	}
    
}
